package com.gdut;

import java.util.Scanner;

public class demo5 {
    public static void main(String[] args) {
        int num;
        Scanner sc = new Scanner(System.in);
        do {
            num = sc.nextInt();
            switch (num) {
                case 1 -> System.out.println("print1");
                case 2 -> System.out.println("print2");
                case 0 -> System.out.println("退出...");
                default -> System.out.println("no no no");
            }
        } while (num != 0);
        num = sc.nextInt();
        for (int i = 0; i < num; i++) {
            System.out.println("haha, i love it:)");
        }
        while (true) {
            num = sc.nextInt();
            if (num == 0) {
                break;
            }
        }
    }
}
